<?php
namespace App\Hydrators;

use App\Models\User;

/**
 * @SuppressWarnings(CyclomaticComplexity)
 * @SuppressWarnings(NPathComplexity)
 */
class UserHydrator extends Hydrator
{

    public function __construct()
    {
        parent::__construct();
    }

    /**
     * @return array
     */
    public function getCreateRules()
    {
        //
    }

    /**
     * @return array
     */
    public function getUpdateRules()
    {
        return [
            'name'          => 'sometimes|required|string|min:2|max:16'
        ];
    }

    /**
     * @param $incoming
     * @param User $model
     * @return User
     */
    public function hydrateForCreate($incoming, $model)
    {
        //
    }

    /**
     * @param $incoming
     * @param User $model
     * @return User
     */
    public function hydrateForUpdate($incoming, $model)
    {

    }
}
